package com.course.extentreport;

import org.testng.Assert;
import org.testng.Reporter;
import org.testng.annotations.Test;

public class TestReport1 {

    @Test
    public void test1() {
        Assert.assertEquals(1, 2-1);
    }

    @Test
    public void test2() {
        Assert.assertEquals("ab", "abc");
    }

    @Test
    public void testLog() {
        Reporter.log("这是一条日志记录");
        throw new RuntimeException("testLog抛出的异常");
    }
}
